package com.trickytriad.model
{
	/**
	 * ElementData class.  Represents the element data (which is number, type,
	 * and eventually strengths/weaknesses and an image).
	 **/
	public class ElementData
	{		
		// Type.
		public var _type:uint;
		
		// Static const type definitions
		public static const ELEMENT_TYPE_NONE:int = 0;
		public static const ELEMENT_TYPE_WIND:int = 1;
		public static const ELEMENT_TYPE_EARTH:int = 2;
		public static const ELEMENT_TYPE_FIRE:int = 3;
		public static const ELEMENT_TYPE_WATER:int = 4;
		public static const ELEMENT_TYPE_DARK:int = 5;
		public static const ELEMENT_TYPE_LIGHT:int = 6;
	
		public function ElementData(in_type:uint)
		{
			_type = in_type;
		}

		// ElementName; getter only, is based off _type.
		public function get elementName ( ) : String
		{
			if (_type == 0)
				return "None";
			if (_type == 1)
				return "Wind";
			if (_type == 2)
				return "Earth";
			if (_type == 3)
				return "Fire";
			if (_type == 4)
				return "Water";
			if (_type == 5)
				return "Dark";
			if (_type == 6)
				return "Light";	
			else
				return "ERROR";
		}

	}
}